package com.product.system.imageCline.factory;

import com.product.system.imageCline.strategy.*;

public class PicParseStrategyFactory {
    public static ParsePicStrategy createStrategy(String imageType,String file){
        switch(imageType){
            case "driverLicense":
                return new DriverLicenseStrategy(file);
            case "businessLicense":
                return new BusinessLicenceStrategy(file);
            case "idCard":
                return new IdCardStrategy(file);
            default:
                throw new IllegalArgumentException("Invalid image type.");
        }
    }
}
